<?php /* Smarty version 2.6.16, created on 2009-04-17 04:20:34
         compiled from GenreView.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'language', 'GenreView.html', 9, false),array('function', 'url', 'GenreView.html', 22, false),)), $this); ?>
<?php $this->assign('iCurrentColumn', 1);  $this->assign('iColumnHeight', $this->_tpl_vars['iCount']/3); ?>
<table style="width: 100%;" cellpadding="4" cellspacing="0">
    <tr>
        <td class="border2">
            <table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
                <tr>
                <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
                <td class="block_header"><?php echo smarty_function_language(array('text' => 'genres'), $this);?>
</td>
                </tr>
            </table>
            <table style="width:100%;" cellspacing="1" cellpadding="1">
                <tr>
                    <td width="10"></td>
                    <td>
                        <div style="padding:8px;">
                            <table style="width: 100%;">
                                <tr>
                                    <td style="valign:top;">
<?php $_from = $this->_tpl_vars['aGenres']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['agenres'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['agenres']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['iKey'] => $this->_tpl_vars['aGenre']):
        $this->_foreach['agenres']['iteration']++;
?>
    <?php if (( ( $this->_foreach['agenres']['iteration']-1 ) % round ( $this->_tpl_vars['iColumnHeight'] ) )): ?>
                                        <div class="list"><a class="link_item" href="<?php echo smarty_function_url(array('link' => 'public.music.stylemusic','genre' => $this->_tpl_vars['aGenre']['genre_id']), $this);?>
"><?php echo smarty_function_language(array('translate' => $this->_tpl_vars['aGenre']['genre_name']), $this);?>
</a></div>
    <?php else: ?>
        <?php $this->assign('iCurrentColumn', $this->_tpl_vars['iCurrentColumn']+1); ?>
                                    </td>
                                    <td valign="top">
                                        <div class="list"><a class="link_item" href="<?php echo smarty_function_url(array('link' => 'public.music.stylemusic','genre' => $this->_tpl_vars['aGenre']['genre_id']), $this);?>
"><?php echo smarty_function_language(array('translate' => $this->_tpl_vars['aGenre']['genre_name']), $this);?>
</a></div>
    <?php endif;  endforeach; endif; unset($_from); ?>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>